import React from 'react';
import { useNavigate } from '../react-router';

function Home(props) {
    let navigate = useNavigate()
    function navigatorTo(){
        navigate('/profile')
    }
    return (
        <div>
            Home
            <button onClick={navigatorTo}>跳转到/profile</button>
        </div>
    );
}

export default Home;